﻿package kliment.events {
	import flash.events.ProgressEvent;
	
	/**
	 * ...
	 * @author Kliment
	 * 
	 * class name: kliment.events.PlayerEvent
	 */
	public class PlayerEvent extends ProgressEvent {
		static public const OPEN:String = 'laod_open';
		static public const PROGRESS:String = 'laod_progress';
		static public const COMPLETE:String = 'laod_complete';
		static public const IO_ERROR:String = 'laod_io_error';
		static public const ID3:String = 'id3';
		
		static public const PLAY_COMPLETE:String = 'play_complete';
		static public const PLAY:String = 'play';
		static public const PLAYING:String = 'playing';
		static public const PAUSE:String = 'pause';
		static public const STOP:String = 'stop';
		
		public var text:String;
		public var position:Number;
		
		public function PlayerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, bytesLoaded:uint = 0, bytesTotal:uint = 0, position:Number = 0, ioText:String = null) {
			super(type, bubbles, cancelable, bytesLoaded, bytesTotal);
			this.position = position;
			this.text = ioText;
			
		}
		
	}

}